package cn.com.spic.demo.service;


import cn.com.spic.demo.dao.BenchMarkDAO;
import cn.com.spic.demo.po.BenchMarkPO;
import com.yonyou.iuap.baseservice.intg.support.ServiceFeature;
import com.yonyou.iuap.baseservice.service.GenericAssoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import static com.yonyou.iuap.baseservice.intg.support.ServiceFeature.AUDIT;
import static com.yonyou.iuap.baseservice.intg.support.ServiceFeature.I18N_ENUM;

/**
 * @ProjectName: demo-contract-provider
 * @Package: cn.com.spic.demo.service
 * @ClassName: BenchMarService
 * @Date: 2021/1/29 11:41
 * @Author: 铁板烤翅
 */
@Service
public class BenchMarObjService extends GenericAssoService<BenchMarkPO, String> {

    @Autowired
    private BenchMarkDAO benchMarkDAO;

    @Autowired
    public void setActionProDAO(BenchMarkDAO benchMarkDAO) {
        this.benchMarkDAO = benchMarkDAO;
        super.setGenericMapper(benchMarkDAO);
    }

    /**
     * @return 向父类 GenericIntegrateService 提供可插拔的特性声明
     * @CAU 可插拔设计
     */
    @Override
    protected ServiceFeature[] getFeats() {
        return new ServiceFeature[]{AUDIT, I18N_ENUM};
    }


}
